package com.fansl.allround.upms.api.feign.fallback;

import com.fansl.allround.common.core.util.R;
import com.fansl.allround.upms.api.entity.SysLog;
import com.fansl.allround.upms.api.feign.RemoteLogService;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author fansl
 * @Description: TODO
 * @date 2019/7/11 18:56
 */
@Slf4j
@Component
public class RemoteLogServiceFallbackImpl implements RemoteLogService {
    @Setter
    private Throwable cause;

    /**
     * 保存日志
     * @param sysLog
     * @param from
     * @return
     */
    @Override
    public R<Boolean> saveLog(SysLog sysLog,String from){
        log.error("feign 插入日志失败",cause);
        return null;
    }
}
